<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Contact.aspx.cs" Inherits="AnonymousUser_Contact" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   
        <!-- First Name -->
        <asp:Label ID="lblFirstName" runat="server" Width="150" Text="First Name:"></asp:Label>
        <asp:TextBox ID="txtFirstName" Width="150" runat="server"></asp:TextBox>
        
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFirstName"
                ErrorMessage="You must enter a first name!" Display="Dynamic" />
            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="txtFirstName"
                Operator="DataTypeCheck" Type="String" ErrorMessage="The value must be letters!"
                Display="Dynamic" />
                
        <br />
        <br />
        <!-- Last Name -->
        <asp:Label ID="lblLastName" Width="150" runat="server" Text="Last Name:"></asp:Label>
        <asp:TextBox ID="txtLastName" Width="150" runat="server"></asp:TextBox>

            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtLastName"
                ErrorMessage="You must enter a last name!" Display="Dynamic" />
            <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="txtLastName"
                Operator="DataTypeCheck" Type="String" ErrorMessage="The value must be letters!"
                Display="Dynamic" />
              
        <br />                
        <br />
        <!-- Address -->
        <asp:Label ID="lblAddress" Width="150" runat="server" Text="Address:"></asp:Label>
        <asp:TextBox ID="txtAddress" Width="150" runat="server"></asp:TextBox>
    
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtAddress"
                ErrorMessage="You must enter a address!" Display="Dynamic" />
        <br />
        <br />    
        <!-- City -->
        <asp:Label ID="lblCity" Width="150" runat="server" Text="City:"></asp:Label>
        <asp:TextBox ID="txtCity" Width="150" runat="server"></asp:TextBox>

            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtCity"
                ErrorMessage="You must enter a city!" Display="Dynamic" />
            <asp:CompareValidator ID="CompareValidator4" runat="server" ControlToValidate="txtCity"
                Operator="DataTypeCheck" Type="String" ErrorMessage="The value must be letters!"
                Display="Dynamic" />
        <br />        
        <br />
        <!-- State -->
        <asp:Label ID="lblState" Width="150" runat="server" Text="State:"></asp:Label>
        <asp:TextBox ID="txtState" Width="150" runat="server"></asp:TextBox>
        
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtState"
                ErrorMessage="Please enter your state abbreviated!" Display="Dynamic" />
            <asp:CompareValidator ID="CompareValidator5" runat="server" ControlToValidate="txtState"
                Operator="DataTypeCheck" Type="String" ErrorMessage="The value must be 2 letters!"
                Display="Dynamic" />
        <br />
        <br />
        <!-- Zip Code -->
        <asp:Label ID="lblZipCode" Width="150" runat="server" Text="Zip Code:"></asp:Label>
        <asp:TextBox ID="txtZipCode" Width="150" runat="server"></asp:TextBox>

            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtZipCode"
                ErrorMessage="Please enter your 5 digit zip code!" Display="Dynamic" />
            <asp:CompareValidator ID="CompareValidator6" runat="server" ControlToValidate="txtZipCode"
                Operator="DataTypeCheck" Type="Integer" ErrorMessage="The value must be 5 numbers!"
                Display="Dynamic" />
        <br />
        <br />
        <!-- Email Address -->
        <asp:Label ID="lblEmail" Width="150" runat="server" Text="E-mail:"></asp:Label>
        <asp:TextBox ID="txtEmail" Width="150" runat="server"></asp:TextBox>

            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtEmail"
                ErrorMessage="Please enter your email address!" Display="Dynamic" />

            <asp:RegularExpressionValidator ID="revEmail" runat="server" ControlToValidate="txtEmail"
        ErrorMessage="This is not a valid email!" ValidationExpression="^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$"></asp:RegularExpressionValidator><br />

        <br />
        <br />
        <!-- Telephone -->
        <asp:Label ID="lblTelephone" Width="150" runat="server" Text="Telephone:"></asp:Label>
        <asp:TextBox ID="txtTelephone" Width="150" runat="server"></asp:TextBox>
        
            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtTelephone"
                ErrorMessage="Please enter your 10 digit telephone number!" Display="Dynamic" />
            <asp:CompareValidator ID="CompareValidator9" runat="server" ControlToValidate="txtTelephone"
                Operator="DataTypeCheck" Type="Integer" ErrorMessage="The value must be 10 numbers, including your area code!"
                Display="Dynamic" />
        <br />
        <br />
        <!-- Messages -->
        <asp:Label ID="lblMessages" runat="server" Text="Message:"></asp:Label><br />
        <br />
        <asp:TextBox ID="txtMessage" runat="server" Height="77px" TextMode="MultiLine" Width="273px"></asp:TextBox>
        
            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtMessage"
                ErrorMessage="Please enter your comments!" Display="Dynamic" />

        <br />
        <br />
        <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
        <br />
        <br />
        <asp:Button ID="btnSubmit" runat="server" OnClick="onClick" Text="Submit" />
        &nbsp;&nbsp;
        <input id="Reset1" type="reset" value="reset" />
		    
   </asp:Content>
